package com.adlx.dingdong.mall.client;

import com.adlx.dingdong.mall.client.hystrix.ProductCategoryFeignClientHystrix;
import com.adlx.dingdong.mall.dto.ShopGoodsCategoryDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * Created by dulei on 18/1/9.
 */
@FeignClient(value = "product-service", fallback = ProductCategoryFeignClientHystrix.class)
public interface ProductCategoryClient {

    @RequestMapping(value = "/productCategory", method = RequestMethod.POST)
    public PageInfo getList(@RequestBody ShopGoodsCategoryDTO categoryDTO);

}
